package com.github.live.util;

import com.github.livebase.log.Logger;
import com.github.livebase.log.LoggerFactory;


/**
 * @ClassName LogFactory
 * @description:
 * @author: biao532
 * @create: 2024-02-02 15:53
 * @Version 1.0
 **/
public class LogFactory {
    private static Logger logger = LoggerFactory.getLogger(LogFactory.class);

    public static Logger getLogger() {
        return logger;
    }

    public static boolean isTrance() {
        return logger.isTrance();
    }

    public static void trance(String tag, String format, Object... params) {
        logger.trance(tag, format, params);
    }

    public static void trance(String tag, Throwable throwable, String message, Object... params) {
        logger.trance(tag, throwable, message, params);
    }
    
    public static void trance(String tag, Throwable throwable) {
        logger.trance(tag, throwable);
    }

    public static boolean isDebug() {
        return logger.isDebug();
    }

    public static void debug(String tag, String format, Object... params) {
        logger.debug(tag, format, params);
    }

    
    public static void debug(String tag, Throwable throwable, String message, Object... params) {
        logger.debug(tag, throwable, message, params);
    }

    
    public static void debug(String tag, Throwable throwable) {
        logger.debug(tag, throwable);
    }

    public static boolean isInfo() {
        return logger.isInfo();
    }
    
    public static void info(String tag, String format, Object... params) {
        logger.info(tag, format, params);
    }

    
    public static void info(String tag, Throwable throwable, String message, Object... params) {
        logger.info(tag, throwable, message, params);
    }

    
    public static void info(String tag, Throwable throwable) {
        logger.info(tag, throwable);
    }

    public static boolean isWarn() {
        return logger.isWarm();
    }
    
    public static void warn(String tag, String format, Object... params) {
        logger.warn(tag, format, params);
    }

    
    public static void warn(String tag, Throwable throwable, String message, Object... params) {
        logger.warn(tag, throwable, message, params);
    }

    
    public static void warn(String tag, Throwable throwable) {
        logger.warn(tag, throwable);
    }

    public static boolean isError() {
        return logger.isError();
    }

    public static void error(String tag, String format, Object... params) {
        logger.error(tag, format, params);
    }

    
    public static void error(String tag, Throwable throwable, String message, Object... params) {
        logger.error(tag, throwable, message, params);
    }

    
    public static void error(String tag, Throwable throwable) {
        logger.error(tag, throwable);
    }

    public static void trance(Class<?> tag, String format, Object... params) {
        trance(tag.getSimpleName(), format, params);
    }


    public static void trance(Class<?> tag,  Throwable throwable, String message, Object... params) {
        LogFactory.trance(tag.getSimpleName(), throwable, message, params);
    }


    public static void trance(Class<?> tag, Throwable throwable) {
        LogFactory.trance(tag.getSimpleName(), throwable);
    }

    public static void debug(Class<?> tag, String format, Object... params) {
        LogFactory.debug(tag.getSimpleName(), format, params);
    }


    public static void debug(Class<?> tag, Throwable throwable, String message, Object... params) {
        LogFactory.debug(tag.getSimpleName(), throwable, message, params);
    }


    public static void debug(Class<?> tag, Throwable throwable) {
        LogFactory.debug(tag.getSimpleName(), throwable);
    }


    public static void info(Class<?> tag, String format, Object... params) {
        LogFactory.info(tag.getSimpleName(), format, params);
    }


    public static void info(Class<?> tag,  Throwable throwable, String message, Object... params) {
        LogFactory.info(tag.getSimpleName(), throwable, message, params);
    }


    public static void info(Class<?> tag, Throwable throwable) {
        LogFactory.info(tag.getSimpleName(), throwable);
    }

    public static void warn(Class<?> tag, String format, Object... params) {
        LogFactory.warn(tag.getSimpleName(), format, params);
    }


    public static void warn(Class<?> tag, Throwable throwable, String message, Object... params) {
        LogFactory.warn(tag.getSimpleName(), throwable, message, params);
    }


    public static void warn(Class<?> tag, Throwable throwable) {
        LogFactory.warn(tag.getSimpleName(), throwable);
    }


    public static void error(Class<?> tag, String format, Object... params) {
        LogFactory.error(tag.getSimpleName(), format, params);
    }


    public static void error(Class<?> tag, Throwable throwable, String message, Object... params) {
        LogFactory.error(tag.getSimpleName(), throwable, message, params);
    }


    public static void error(Class<?> tag, Throwable throwable) {
        LogFactory.error(tag.getSimpleName(), throwable);
    }

}
